package com.oaoa.main.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.oaoa.main.dao.base.TestDao;
import com.oaoa.main.entity.TestEntity;
import com.oaoa.main.service.TestI;
@Service
public class TestImpl implements TestI {

	@Autowired
	TestDao testDao;
	
	public void addTest(TestEntity te) {
		testDao.save(te);
	}

	public List<TestEntity> getTestEntitys() {
	
		return testDao.findAll();
	}


}
